package Actions;

import Utils.Utils;
import io.restassured.response.Response;
import org.testng.Assert;

import static io.restassured.RestAssured.given;

public class IMSAction extends BaseAction {

    public Response getGoodsReceipt(String shopid, String billno){
         response=given()
                .contentType("application/json")
                .cookies(cookies)
                .body("{\n" +
                        "\t\"pagesize\": 50,\n" +
                        "\t\"pageindex\": 1,\n" +
                        "\t\"site\": [\""+shopid+"\"],\n" +
                        "\t\"sourceno\": [\""+billno+"\"]\n" +
                        "}")
                .post(URL+"article-document-center/document/list?pagesize=50&pageindex=1");

        return response;
    }
}
